package cn.nai.DemoRan.demo01;

public class StudentMain {
    public static void main(String[] args) {
        //无参构造方法
        Student stu1 = new Student();
        stu1.setName("张三");
        stu1.setScore(90);
        System.out.println(stu1.getName() + "的成绩是" + stu1.getScore());
        System.out.println("===========");
        //有参构造方法
        Student stu2 = new Student("李四",95);
        System.out.println(stu2.getName() + "的成绩是" + stu2.getScore());
    }
}
